﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Collections.ObjectModel;

namespace HotelManageSystem.Domain.Entities
{
    /// <summary>
    /// Class Name:     HotelingInfomation
    /// Author:         Wenshu Zhang
    /// Creation Date:  2011-12-29
    /// Description:    住房+预订
    /// QA:             
    /// -----------------------------------------
    /// </summary>
   [Table("HotelingInfomation")]
    public  class HotelingInfomation
    {
        public HotelingInfomation()
        {
            ClientCollection = new Collection<Client>();
            ClientConsumptionCollection = new Collection<ClientConsumption>();
        }

        [Key]
        public string ID { get; set; }

        [Required]
        public int PresonNum { get; set; }

        [Required]
        public decimal AdvancePayment{ get; set; }//押金

        [Required]
        public DateTime EntetTime { get; set; }
        
        [Required]
        public DateTime EndTime { get; set; }

        [Required]
        public virtual ICollection<Client> ClientCollection { get; set; }

        public virtual ICollection<ClientConsumption> ClientConsumptionCollection { get; set; }
        
        [Required]
        public virtual Room Room { get; set; }
    }
}
